﻿package Chapter02;

public class Team {
	Person[] members = new Person[3];
	
	void makeTeam() {
		for (int i = 0; i < members.length; i++) {
			members[i] = new Person();
			members[i].generate();
			members[i].print();
		}
	}
	
	void print() {
		for (int i = 0; i < members.length; i++) {
			//members[i].print();
			System.out.println("姓名: "+members[i].name);
		}
		
		// 計算平均年齡
		// print 平均年齡
	}
}
